package com.dy.nygl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.dy.nygl.pojo.DayYear;

@Component("dayYearDao")
public interface DayYearMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DayYear record);

    int insertSelective(DayYear record);

    DayYear selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DayYear record);

    int updateByPrimaryKey(DayYear record);
    
    List<DayYear> selectAll();
    
    List<DayYear> selectLike(@Param("date")String date);
    
    DayYear selectByDate(@Param("date")String date);
    
    List<DayYear> selectPeriods(@Param("beginId")Integer beginId,@Param("endId")Integer endId);
}